<template>
  <view>
    <my-login v-if="!getToken"></my-login>
    <my-userinfo v-else></my-userinfo>
  </view>
</template>
<script>
import badgeMix from '../../mixins/tabbar-badge.js'
import {mapGetters} from 'vuex'
export default {
  mixins: [badgeMix],
  data () {
    return {}
  },
  computed:{
    ...mapGetters('user',['getToken'])
  }
}
</script>
